import java.util.Scanner;
public class student implements Comparable<student>
{
    private int score;
    private long id;
    private String name;
    public student(long i,int  sc,String n)
    {
        id=i;
        score=sc;
        name=n;
    }

    public long getId() {
        return id;
    }

    public int getScore() {
        return score;
    }

    public String getName() {
        return name;
    }


    @Override
    public int compareTo(student other) {
       // if(  other!=null && other instanceof student)
       // {
            student temp=(student) other;
            if(score==temp.score)  return 0;
            else if(score>temp.score) return 2;
            else return -1;
       // }
       // else return -1;
    }
}
